//
//  DBManagerHelper.h
//  test
//
//  Created by mac on 2017/9/14.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Product.h"
#import "FMDatabase.h"

@interface DBManagerHelper : NSObject

+(DBManagerHelper *)instance;

//添加一条数据
-(void)insertProduct:(Product *)model;

//查询数据
-(NSArray *)selectAllProduct;

//删除数据
-(void)deleteProductWithId:(int)Id;

//修改数据
-(void)updateProduct:(Product *)model Id:(int)Id;

-(void) delectFrom;

-(int) selectCount;

-(FMResultSet *)selectCategory;

//批量插入
- (void)batchInsert:(NSArray *)datas;

@end
